import {createApp} from 'vue';
import App from './App.vue';
import './assets/global.less';
import components from './components/global';
import Router from './router/index';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import {useSocket} from "@/hooks/useSocket";

const useSocket1 = useSocket()
useSocket1.conn()
const app = createApp(App)
app.config.productionTip = false
app.use(ElementPlus)
// components
for (const i in components) {
    app.component(i, components[i])
}
window.$io = useSocket1
console.log(window)
app.use(Router).mount('#app')
